package utils

func MapList[T any, K any](item []*T, mapFunc func(item *T) *K) []*K {
	var result []*K
	for _, v := range item {
		result = append(result, mapFunc(v))
	}
	return result
}
